package com.onesports.intelligent.k12.polarlight.domain.dto.sys;

import com.onesports.framework.kit.common.valid.Length;
import com.onesports.framework.kit.common.valid.NotEmpty;
import com.onesports.framework.kit.common.valid.Regex;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description: ResetPasswordDTO
 * @date 2021年05月19日 18:39
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResetPasswordDTO {

    @ApiModelProperty(value = "账号id",required = true)
    @NotEmpty(message = "账号id不能为空")
    private String id;

    @ApiModelProperty(value = "密码",required = true)
    @NotEmpty(message = "密码不能为空")
    @Regex(expr = "^\\w+$",message = "密码必须由数字/字母/下划线组成")
    @Length(min = 6,max = 12,message = "密码必须是6-12位")
    private String password;
}
